<template>
  <div class="text-center">
    My Home Page
    <div>
      <el-button type="primary" @click="myclick">主要按钮</el-button>
    </div>
  </div>
</template>
// <script setup>
// const pus = require("./../components/pus");
// const mqtt = require("mqtt");
// const components = { pus };
// const myclick = () => {

//   const client = mqtt.connect("mqtt://127.0.0.1:1883");
//   const value = Math.ceil(Math.random() * 40);
//   client.publish("temperature", value.toString(), { qos: 0, retain: true });
//   console.log(12);
// }
// </script>
